Repository navigation
feat(decrypt): add Decrypt tab and explain sharing protected content - #11
Merged
Merged
Conversation
coko7
commented
Nov 13, 2026
Owner
- feat(decrypt): add Decrypt tab and explain sharing protected content
- feat(dashboard): copy share link for encrypted items
Turn /decrypt into a proper sidebar tab: a link + password form that works standalone (link field empty) or prefilled from ?url=. It accepts a raw rustypaste link or a Watari share link, stays public for recipients without an account, and keeps the signed-in sidebar for logged-in users via a new non-redirecting Option<UserSession> extractor. Fetch failures now get specific messages (wrong server, expired / deleted / already-opened one-shot) instead of the generic "wrong password" one, and decrypted short URLs render as a clickable http(s) link. The fetched ciphertext is cached per link, so retrying after a mistyped password no longer refetches and burns one-shot content. After an encrypted upload, paste or shorten, the success flash now shows the Watari share link (APP_BASE_URL/decrypt?url=...) instead of the raw ciphertext URL, with a short explanation of how recipients open it and a reminder to send the password over a separate channel. Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
For password-protected rows, the dashboard's Copy button and link now use the Watari share link (APP_BASE_URL/decrypt?url=...) instead of the raw rustypaste URL, which only serves ciphertext. The link text still shows the rustypaste URL to identify the item; unencrypted rows are unchanged. Co-Authored-By: lazytrek <352825308+lazytrek@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.